# encoding: utf-8
# from selenium import webdriver
# from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
# from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
# binary  = FirefoxBinary('C:\Program Files\Mozilla Firefox53\firefox.exe')
# browser = webdriver.Firefox()
# browser.get("http://www.baidu.com")
#  browser.find_element_by_id("kw").send_keys("新白娘子传奇")
# browser.find_element_by_id("su").click()
# browser.close()
# from pip._vendor.distlib.compat import raw_input
# name = raw_input("what is you name:")
# if name.endswith("欧阳"):
#     print("欧阳小明")
# elif name.endswith("小明"):
#     print("欧阳小明")
# else:
#     print("司马小明")
# if True:
#     print("你好、加油")
# else:
#     print ("继续加油")
#     print("我眼中的世界")
#     print("生下来了，活下去")
# a , b , c = 1,2,"john"
# print (a)
# print (b)
# print (c)
#
# str = 'hello wrld!'
# print str
# print str[0]
# print str[2:]
# print str[2:6]
# print str * 2
# print str + "TEST"
# list = ['runoob',205,'john','agjas',154,]
# print list[0]
# print list[3]
# print list[2]
# tuple =('runoob',7896,2.145,'john','琅琊榜之"风起长岭"')
# print tuple[4]
# print tuple[0]
# print tuple[1]
# print tuple[2]
# print tuple[0:3]
# print tuple[2:]
# dict ={}
# dict['one'] = "sorry !! this is a misstake"
# dict[2] = "this is surprise"
# tinydict = {'name':'john','code':'564','dept':'sales'}
# print dict['one']
# print dict[2]
# print tinydict
# print tinydict.keys()
# print tinydict.values()
#
#
# a = input("输入A的值")
# b = input("请输入b的值")
#
# # c = a + b
# # print c
# # c = a - b
# # print c
# # c = a * b
# # print c
# # c = a / b
# # print c
# # c = a % b
# # print c
# # c = a ** b
# # print c
# # c = a // b
# # print c
# c = a + b
# if( a == b ):
#     print "a与b的值相等"
# elif( a > b ):
#     print("a大于b")
# else:
#      print ("a小于b")

# num = input('输入num的')
# if num >= 0 and num <= 10:
#     print("你输入的num值在1-10之间")
# elif num > 10:
#     print ('你输入的num大于10')
# else:
#     print ("你输入的num小于0")

# a = 0
# b = 1
# if(a > 0) and (b/a > 2):
#     print("yes")
# else:
#     print("no")
# def my_print(args):
#     print (args)
# import  random
# s = int(random.uniform(1,10))
# m = int(input('请输入整数：'))
# while m != s:
#     if m == s:
#         print'ok'
#         break;
#     if m > s:
#         print "大了"
#         m = int(input('输入整数：'))

# for letter in 'python':
#     print '当前字母 ：', letter
#     fruits = ['banner','apple','mango']
# for fruit in fruits:
#     print ('当前水果 ：', fruit ,'')
#     print  ('goodbye')
# ''' 质数、合数的判断 '''
# '''
# for num in range(10,200):
#     for i in range(2,num):
#         if num % i == 0:
#             j = num/i
#             print ('%d 等于 %d * %d' % (num, i, j ))
#             break
#     else:
#         print  num,"是一个质数"
# for num1 in range(10, 200):
#     for i in range(2, num1):
#         if (num1 % i == 0):
#             j = num1 / i
#             print ('%d 等于 %d * %d' % (num1, i, j))
#             break
#     else:
#         print  (num1, "是一个质数")
# '''
#
# '''使用list.append()模块对质数进行输出'''
# prime = []
# for num in range(2,200):
#     for i in range(2,num):
#         if (num % i == 0) :
#          break
#     else:
#      prime.append(num)
#     print (prime)
# '''使用内置 enumerate 函数进行遍历元素的序号以及对应的值'''
# sequence = [12，13，15,16,18,20,36,200,1000]
# for i,j in enumerate(sequence):
#     print (i,j)


i = int(input('净利润:').strip())
arr = [1000000,600000,400000,200000,100000,0]
rat = [0.01,0.015,0.03,0.05,0.075,0.1]
r = 0
for idx in range(0,6):
    if i>arr[idx]:
        r +=(i-arr[idx])*rat[idx]
        print (i-arr[idx])*rat[idx]
        i=arr[idx]
print (r)

print ("_________")
for i in range(1,85):
    if 168 % i == 0:
        j = 168 / i;
        if i > j and (i + j) % 2 == 0 and (i - j) % 2 == 0 :
            m = (i + j) / 2
            n = (i - j) / 2
            x = n * n - 100
            print(x)



# -------------9*9乘法表------------
L=[]
for i in range(1, 10):
    L.append("%s*%s=%s"%(i,i,i*i))
    print(' ' .join(L))

# ---------9*9乘法表 倒叙-----------
for i in range(1,10):
    for j in range(i,10):
        print("%d*%d=%2d" % (i,j,i*j),end=" ")
    print("")
